package org.liquidByte.trafficMustang.androidApp.listview.adapter;

import org.liquidByte.trafficMustang.R;
import org.liquidByte.trafficMustang.androidApp.listview.row.ListViewRow;
import org.liquidByte.trafficMustang.androidApp.listview.row.MensagemRow;
import org.liquidByte.trafficMustang.androidApp.services.dto.MensagemDTO;

import android.content.Context;
import android.view.View;

public class MensagemRowAdapter extends RowAdapter<MensagemDTO> {

	protected MensagemRowAdapter(Context ctx) {
		super(ctx);
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

	@Override
	protected int getViewResource() {
		return R.layout.listview_row_mensagem;
	}

	@Override
	protected ListViewRow createRow(View view) {
		return new MensagemRow(this, view);
	}

}
